package com.black.auth.client.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.black.auth.client.po.OauthClientDetails;
import com.black.common.web.PageQuery;

import java.util.List;


/**
 * @author linwenfeng
 */
public interface OauthClientDetailsService {


    /**
     * cha
     * @param searchVo
     * @return
     */
    IPage<OauthClientDetails> search(PageQuery<OauthClientDetails> searchVo);

    /**
     * 根据主键查询
     *
     * @param clientId clientId
     * @return OauthClientDetails
     */
    OauthClientDetails findById(String clientId);

    /**
     * 新增
     * @param oauthClientDetails oauthClientDetails
     * @throws Exception e
     */
    void createOauthClientDetails(OauthClientDetails oauthClientDetails) throws Exception;

    /**
     * 修改
     *
     * @param oauthClientDetails oauthClientDetails
     */
    void updateOauthClientDetails(OauthClientDetails oauthClientDetails);

    /**
     * 删除
     *
     * @param clientIds clientIds
     */
    void deleteOauthClientDetails(List<String> clientIds);
}
